Shader.setFragmentVar

If validateData is true, it will compare if the data has changed for choosing whether it should or not send to the GPU.

class Shader
void
setFragmentVar
(
T
)
(
string name
,
T val
,
bool validateData = false
)

Parameters

name string
val T
validateData bool

Meta